package com.attilax.mov;

import java.util.List;
import java.util.Map;
import java.util.Optional;

import com.attilax.cms.CmsSvs;
import com.attilax.json.AtiJson;
import com.attilax.linq.AExpression;
import com.attilax.linq.EqExpression;
import com.attilax.oodb.DBms;
import com.attilax.oodb.imp.MovTable;

/**
 * 
 * @author Administrator
 *
 */
public class MovSvs extends CmsSvs{

	public static void main(String[] args) {
		new MovSvs().get_post(Optional.empty());
		System.out.println("--f");
	//	return this;
	}
	//com.attilax.mov.get_posts
	public List<Map>	get_posts(Optional<Map> m)
	{
		if(!m.isPresent())
		{
			List<Map> li=new  DBms().from(MovTable.class).where(Optional.empty() );
			System.out.println( AtiJson.toJson(li));
			return li;
		}
		return null;
		
	}
	public Map	get_post(Object id)
	{
		
		List<Map> li=new  DBms().from(MovTable.class).where(Optional.ofNullable(null) );
		System.out.println( AtiJson.toJson(li));
		return null;
		
	}

}
